import instance from "@/utils/request";

/**
 * 分页条件查询
 */
export function findPage(searchParams) {

    return instance.get(`indent/someList`, {params: searchParams})
}
/**
 * 查询所有订单类型信息
 */
export function findAllIndent() {

    return instance.get(`indent/findAllIndent`)
}
/**
 * 根据id删除订单
 */
export function deleteById(id) {

    return instance.delete(`indent/${id}`)
}
/**
 * 根据id批量删除
 */
export function batchDelete(ids) {
    return instance.delete(`indent/batch/${ids}`)
}

/**
 * 根据id查询订单详细信息
 */
export function searchIndentById(id) {

    return instance.get(`indent/findIndentById/${id}`)
}


/**
 * 根据订单id查询订单详细信息
 */
export function searchCountGoods(id) {

    return instance.get(`countGoods/findCountGoods/${id}`)
}


